package com.newegg.nlp.arangodb.model;

import com.arangodb.springframework.annotation.Edge;
import com.arangodb.springframework.annotation.From;
import com.arangodb.springframework.annotation.To;
import com.newegg.nlp.arangodb.BaseModel;

@Edge
public class ReviewItem extends BaseModel{
	
	@From
	Item item;
	
	@To
	Review review;
	
	public ReviewItem(Item item, Review review) {
		super();
		setId(item.getId() +"_"+ review.getId());
		this.item = item;
		this.review = review;
	}

	public Item getItem() {
		return item;
	}

	public void setItem(Item item) {
		this.item = item;
	}

	public Review getReview() {
		return review;
	}

	public void setReview(Review review) {
		this.review = review;
	}

}
